﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="lazy.WebForm2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h3>登录</h3>
            用户名：<asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
            <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="请核实用户名！" OnServerValidate="CustomValidator1_ServerValidate" ValidationGroup="loading"></asp:CustomValidator>
            <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="名字不能为admin" OnServerValidate="CustomValidator2_ServerValidate"></asp:CustomValidator>
            <asp:CustomValidator ID="CustomValidator3" runat="server" ErrorMessage="不存在这个账号" OnServerValidate="CustomValidator3_ServerValidate" ValidationGroup="loading"></asp:CustomValidator>
            <br />
            密码：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><asp:CustomValidator ID="CustomValidator4" runat="server" ErrorMessage="密码错误！" OnServerValidate="CustomValidator4_ServerValidate"></asp:CustomValidator>
            
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="loading"/>
            <asp:Button ID="Button1" runat="server" Text="登录" OnClick="Button1_Click"/>
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
        </div>
    </form>
</body>
</html>
